#ifndef STM32_SPI1_H
#define STM32_SPI1_H

#include "stm32f10x.h"
#include "Sensor.h"

#define 	SPI_CS_ENABLE		GPIO_ResetBits(GPIOA,GPIO_Pin_4)
#define 	SPI_CS_DISABLE	GPIO_SetBits(GPIOA,GPIO_Pin_4)

void SPI1_Init(void);
u16 SPI1_ReadWriteByte(u16 TxData);
uint16_t ReadValue(uint16_t u16RegValue);
uint16_t ReadAngle(void);

#endif
